<?php

interface TV
{
    public function open();

    public function used();
}

class HaierTV implements TV
{
    public function open()
    {
        echo "Open haier Tv \n";
    }

    public function used()
    {
        echo "I'm watching TV \n";
    }
}

interface PC
{
    public function work();

    public function play();
}

class LenovoPc implements PC
{
    public function work()
    {
        echo "I'm working on a Lenovo computer \n";

    }

    public function play()
    {
        echo "Lenovo computers can be used to play games \n";

    }
}

abstract class Factory
{
    abstract public static function createPc();

    abstract public static function createTv();
}

class ProductFactory extends Factory
{
    public static function createTv()
    {
        return new HaierTV();
    }

    public static function createPc()
    {
        return new LenovoPc();
    }
}

